package org.jeecg.modules.wms.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.wms.entity.WmsOutboundDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 出库单明细表
 * @Author: jeecg-boot
 * @Date: 2023-07-01
 * @Version: V1.0
 */
public interface WmsOutboundDetailMapper extends BaseMapper<WmsOutboundDetail> {
    
    /**
     * 根据出库单ID查询明细列表
     *
     * @param outboundId 出库单ID
     * @return 明细列表
     */
    List<WmsOutboundDetail> selectByOutboundId(@Param("outboundId") String outboundId);
    
    /**
     * 根据出库单ID删除明细
     *
     * @param outboundId 出库单ID
     * @return 影响行数
     */
    int deleteByOutboundId(@Param("outboundId") String outboundId);
    
    /**
     * 批量新增明细
     *
     * @param outboundDetailList 明细列表
     * @return 影响行数
     */
    int batchInsert(@Param("list") List<WmsOutboundDetail> outboundDetailList);

    List<WmsOutboundDetail> selectByOutboundIdAndUpdateBy(@Param("id") String id,@Param("username") String username);
}